package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;
import org.springframework.stereotype.Service;

@Service
public interface WmNewsService extends IService<WmNews> {


    /**
     * 条件查询文章列表
     *
     * @param wmNewsPageReqDto
     * @return
     */
    ResponseResult findList(WmNewsPageReqDto wmNewsPageReqDto);


    /**
     * TODO 发布修改文章或保存为草稿
     *
     * @param wmNewsDto
     * @return
     */
    ResponseResult submitNews(WmNewsDto wmNewsDto);

    ResponseResult selectNewsById(Integer id);

    ResponseResult deleteNewsById(Integer id);

    ResponseResult downOrUp(WmNewsDto dto);

}
